﻿#ifndef USERTRADEWIDGET_H
#define USERTRADEWIDGET_H

#include <QDialog>
#include "tradeservice.h"

namespace Ui {
class UserTradeWidget;
}

class UserTradeWidget : public QDialog
{
    Q_OBJECT

public:
    explicit UserTradeWidget(QWidget *parent = nullptr);
    ~UserTradeWidget();

    QPixmap createQrCode(const QString &text);
private slots:
    void on_pushButtonQrCode_clicked();

    void on_comboBoxTradeTime_currentIndexChanged(int index);

    void on_pushButtonQuery_clicked();

private:
    Ui::UserTradeWidget *ui;
    TradeService tradeService;

    int day;
    QString totalAmount;
};

#endif // USERTRADEWIDGET_H
